package 责任链模式;

public class TempLeader extends Do {
    public TempLeader(Do next) {
        super(next);
    }

    @Override
    public void hander(Request req) {
        System.out.println("组长同意");
        if(req.getDays()>1){
            next.hander(req);
        }
    }
}
